using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Os.WebUI.Models
{
	[PropertiesMustMatch("Password", "ConfirmPassword", ErrorMessage = "As senhas não conferem.")]
	public class RegisterModel
	{
		[Required(ErrorMessage = "*"), DisplayName("Usuário")]
		public string UserName
		{
			get;
			set;
		}
		[DataType(DataType.EmailAddress), DisplayName("Email"), Required(ErrorMessage = "*")]
		public string Email
		{
			get;
			set;
		}
		[DataType(DataType.Password), DisplayName("senha"), Required(ErrorMessage = "*"), ValidatePasswordLength]
		public string Password
		{
			get;
			set;
		}
		[DisplayName("Confirmar senha"), DataType(DataType.Password), Required(ErrorMessage = "*")]
		public string ConfirmPassword
		{
			get;
			set;
		}
	}
}
